var CommonUtil = new CommonUtil();

$(function() {
	queryItemList();
});

function toLogin() {
	location.href = CommonUtil.getRootPath() + '/sm/page/login/login.html';
}

function queryItemList() {
    $.ajax({
        cache: true,
        type: 'POST',
		url : CommonUtil.getRootPath() + '/sm/queryItemsList.action',
        data: JSON.stringify({}),
        dataType: 'JSON',
        contentType: 'application/json',
        async: true,
        beforeSend: function() {},
        error: function (data) {
        	console.log(data);
        },
        success: function (data) {
        	alert(JSON.stringify(data));
//        	console.log(data);
        }
        });
}